package com.yb.xczx.cloud.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_permission")
@ApiModel(value = "SysPermission对象", description = "")
public class SysPermission {

    @ApiModelProperty("权限id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(" 系统分配唯一编号")
    @TableField("permission_id")
    private Integer permissionId;

    @ApiModelProperty("编码唯一")
    @TableField("permission_code")
    private String permissionCode;

    @ApiModelProperty("名称")
    @TableField("permission_name")
    private String permissionName;

    @ApiModelProperty("描述信息")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("是否是菜单 0 不是菜单 1是菜单")
    @TableField("is_menu")
    private String isMenu;

    @ApiModelProperty("如果是菜单，则有值0 代表没有父节点，1代表父节点")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty("路径匹配")
    @TableField("path")
    private String path;

    @ApiModelProperty("如果是菜单权限，则是路由路径")
    @TableField("route_path")
    private String routePath;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
